@page "/openiddict/applications"
@using Microsoft.AspNetCore.Authorization
@using Volo.Abp.AspNetCore.Components.Web
@using Volo.Abp.AspNetCore.Components.Web.Theming
@using Volo.Abp.AspNetCore.Components.Web.Theming.Layout
@using Volo.Abp.BlazoriseUI.Components.ObjectExtending
@using WL.Think.Abp.Dto
@using WL.Think.Abp.Localization
@using WL.Think.Abp.OpenIddict.Dtos
@using WL.Think.Abp.OpenIddict.Localization
@using WL.Think.Abp.OpenIddict.Permission
@using WL.Think.Abp.OpenIddict.Services
@attribute [Authorize(OpenIddictPermissions.Applications.Default)]
@inject AbpBlazorMessageLocalizerHelper<ThinkResource> LH
@inherits AbpCrudPageBase<IApplicationAppService, ApplicationDto, Guid, ApplicationPagedDto, ApplicationCreateUpdateDto, ApplicationCreateUpdateDto>

<Card>
    <CardHeader>
        @**************** 页头设计 ********************@
        <PageHeader Title="@L["Applications"]"
                    BreadcrumbItems="@BreadcrumbItems"
                    Toolbar="@Toolbar">
        </PageHeader>
    </CardHeader>
    <CardBody>
        <Column ColumnSize="ColumnSize.Is4" class="form-group row" style="text-align:right;">
            <div class="col-sm-8">
                <TextEdit Placeholder="@L["Input Your Search Content"]" @bind-Text="GetListInput.Filter" Size="Size.Small"></TextEdit>
            </div>
        </Column>

        @***************** 数据表格 ************************@
        <AbpExtensibleDataGrid TItem="ApplicationDto"
                               Data="@Entities"
                               ReadData="@OnDataGridReadAsync"
                               TotalItems="@TotalCount"
                               ShowPager="true"
                               PageSize="@PageSize"
                               CurrentPage="@CurrentPage"
                               Columns="@DataColumns">
        </AbpExtensibleDataGrid>
    </CardBody>
</Card>

@********************** 添加弹出框 *********************************@
@if (HasCreatePermission || HasUpdatePermission)
{
    <ApplicationManagerModal @ref="applicationManagerModal"></ApplicationManagerModal>
}